#include"Shm.hpp"
#include"NamedPipe.hpp"

int main()
{
    Shm shm(pathname,gUser,gProc_id);
    shm.Zero();
    char *shmaddr=(char*)shm.AddrShm();

    NamedPipe fifo(path,gCreater);
    fifo.OpenForWrite();
    int i=0;
    for(char ch='a';ch<='f';ch++)
    {
        sleep(1);
        shmaddr[i++]=ch;
        std::string tmp="wake";
        fifo.WriteNamedPipe(tmp);
    }
    return 0;
}